var prize_turn = document.querySelector(".prize_turn"),
    prize=document.querySelector(".prize"),
    prize_close=document.querySelector(".prize_close"),
    rule_turn = document.querySelector(".rule_turn"),
    rule = document.querySelector(".rule"),
    rule_close = document.querySelector(".rule_close"),
    start_button=document.querySelector(".start_button"),
    turn_page=document.querySelector(".turn_page"),
    turn_page_close=document.querySelector(".turn_page_close");
//抽奖页面跳至活动说明页面
rule_turn.addEventListener("click", function () {
    rule.setAttribute("style", "display:block");
})
//关闭活动说明页面
rule_close.addEventListener("click", function () {
    rule.setAttribute("style", "display:none");
})
//抽奖页面跳至我的奖品页面
prize_turn.addEventListener("click",function(){
    prize.setAttribute("style","display:block");
})
//关闭我的奖品页面
prize_close.addEventListener("click",function(){
    prize.setAttribute("style","display:none");
})
//抽奖页面跳至跳转页面
start_button.addEventListener("click",function(){
    turn_page.setAttribute("style","display:block");
})
//关闭跳转页面
turn_page_close.addEventListener("click",function(){
    turn_page.setAttribute("style","display:none");
})

var innerHeight=window.innerHeight,
    bodyHeight=document.getElementsByTagName("html")[0]
    scrollHeight=document.getElementsByTagName("html")[0].scrollHeight;
if(innerHeight<scrollHeight){
    bodyHeight.setAttribute("style","height:"+scrollHeight+"px")
}